package com.elio.seatademoorder.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName : AccountFeignClient
 * @Description : 账户
 * @Author : zhaowenyi
 * @Date: 2021/08/13
 */
@FeignClient("seata-demo-account")
public interface AccountFeignClient {

    @ResponseBody
    @PostMapping("/api/account/debit")
    void debit(@RequestParam("userId") String userId,
                      @RequestParam("money")  int money);
}
